<%@ Page Language="VB" MasterPageFile="~/Admin/admin.master" AutoEventWireup="false" CodeFile="appStateCustomization.aspx.vb" Inherits="appStateCustomization" title="Admin - Application Settings - State Customization" %>
<%@ Register Src="SubNavControls/AppSubNavControl.ascx" TagName="AppSubNavControl" TagPrefix="uc1" %>
 <%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>
   

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<uc1:AppSubNavControl ID="SubNavCtrl" runat="server" />


   <table cellpadding="0" cellspacing="0">
       <tr><td width="20px" rowspan="4"></td><td><h1><a id="pagecontent">Admin - Application Settings - State Customization</a></h1></td>
       <tr><td><asp:Label id="UploadMsgLabel" runat="server" visible="false" text="Upload successful." CssClass="adminLabel">
       </asp:Label></td></tr>
       <tr><td>
       <cc2:ScrollingGridView ID="StateScrollingGridView" runat="server" CssClass="gridOffset" IsFixedColumn="true" AutoGenerateColumns="False" ToolTip="180"
             DataKeyNames="SettingID" CellPadding="5" BorderColor="#21334B" BorderStyle="Solid" 
            GridLines="Vertical" AllowSorting="true">
        <HeaderStyle CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" />
        <Columns>
            <asp:TemplateField HeaderText="Content to Display">
                 <ItemStyle Width="544px" />
                <HeaderStyle Width="560px" />
                <ItemTemplate>
                      <cc2:GenericInputControl Id="SettingValueInputControl" runat="server" ControlWidth="275px" Title='<%# Eval("DisplayName") %>' ControlType='<%#Eval("ControlType") %>' CssClassControl="formNoMargin" cssClassLabel="labelNoMargin" Value='<%#Eval("SettingValue")%>'></cc2:GenericInputControl></asp:Panel><br />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Must Enter a Number?" ItemStyle-HorizontalAlign="Center" AccessibleHeaderText="Must Enter a Number?" ItemStyle-Width="140px" HeaderStyle-Width="140px">
                <ItemTemplate>
                    <%#Eval("IsNumericDisplay") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Description" >
               <ItemStyle Width="150" HorizontalAlign="Center" />
               <HeaderStyle Width="200" />
               <ItemTemplate>
                   <a href="javascript:alert('<%#Eval("Description")%>');">View Description</a>
               </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <AlternatingRowStyle BackColor="#E8ECF4" />
       </cc2:ScrollingGridView>
       </td></tr>
        <tr><td>
        <asp:panel id="NewLogoPanel" runat="server" visible="false" cssclass="gridOffset" Width="600">
           <asp:Label ID="UploadLogoLabel" runat="server" AssociatedControlID="FileUploadControl" Text="Upload File:"></asp:Label> <asp:FileUpload ID="FileUploadControl" runat="server" CssClass="adminForm" Width="300" />
           <br />
           <asp:Button ID="UploadButton" runat="server" Text="Upload" /><asp:Button ID="CancelUploadButton" runat="server" Text="Cancel" />
       </asp:panel>
        </td></tr>        
        </table>       
       

</asp:Content>
<asp:Content ID="FixedContent" runat="server" ContentPlaceHolderID="ContentPlaceHolderFixedAdmin">
   <asp:Panel Id="FixedContentPanel" runat="server">
   <table cellpadding="0" cellspacing="2" ><tr><td>
   <asp:Button ID="SaveSettingsButton" runat="server" Text="Save Settings" /> 
   </td><td>
   <input type="reset" value="Reset Form" />
   </td><td>
   <asp:HyperLink ID="PrintSettingsHyperLink" runat="server" NavigateUrl="~/Admin/appStateCustomizationPrint.aspx" Target="_blank" Text="Print Settings"></asp:HyperLink>
   </td><td>
   <asp:Button ID="LogoButton" runat="server" Text="Upload New Logo" />
   </td></tr></table>
   </asp:Panel>
</asp:Content>

